from manim import *


class plot_line_graph(Scene):
    def construct(self):
        ax = Axes(
            x_range=[0, 40, 5],
            y_range=[-10, 30, 5],
            x_length=9,
            y_length=6,
            x_axis_config={"numbers_to_include": np.arange(0, 40, 5)},
            y_axis_config={"numbers_to_include": np.arange(-10, 30, 5)},
            tips=False,
        )
        x_vals = [0, 8, 35, 39]
        y_vals = [20, 0, 0, -5]
        graph = ax.plot_line_graph(x_vals, y_vals)
        self.add(ax, graph)
